***** TEXT TO CORRELATES OF WAR CODES *****
* Derived from the work of Andreas Beger (2006) - https://www.andybeger.com/blog/2013-09-05-stata-do-files-for-country-code-conversions/

replace ccode=  2 if recipient=="United States of America"
replace ccode=  2 if recipient=="United States"
replace ccode=  2 if recipient=="USA"
replace ccode= 20 if recipient=="Canada"
replace ccode= 31 if recipient=="Bahamas"
replace ccode= 31 if recipient=="Bahamas, The"
replace ccode= 40 if recipient=="Cuba"
replace ccode= 41 if recipient=="Haiti"
replace ccode= 42 if recipient=="Dominican Republic"
replace ccode= 51 if recipient=="Jamaica"
replace ccode= 52 if recipient=="Trinidad and Tobago"
replace ccode= 52 if recipient=="Trinidad & Tobago"
replace ccode= 52 if recipient=="Trinidad &Tobago"
replace ccode= 53 if recipient=="Barbados"
replace ccode= 54 if recipient=="Dominica"
replace ccode= 55 if recipient=="Grenada"
replace ccode= 56 if recipient=="St. Lucia"
replace ccode= 57 if recipient=="St. Vincent and the Grenadines"
replace ccode= 57 if recipient=="St. Vincent & Grens."
replace ccode= 57 if recipient=="St. Vincent & Grenadines"
replace ccode= 57 if recipient=="St.Vincent & Grenadines"
replace ccode= 57 if recipient=="Saint Vincent"
replace ccode= 58 if recipient=="Antigua & Barbuda"
replace ccode= 58 if recipient=="Antigua and Barbuda"
replace ccode= 58 if recipient=="Antigua"
replace ccode= 60 if recipient=="St. Kitts and Nevis"
replace ccode= 60 if recipient=="St. Kitts & Nevis"
replace ccode= 60 if recipient=="Saint Kitts and Nevis"
replace ccode= 60 if recipient=="Saint Kitts & Nevis"
replace ccode= 60 if recipient=="Saint Kitts"
replace ccode= 70 if recipient=="Mexico"
replace ccode= 80 if recipient=="Belize"
replace ccode= 90 if recipient=="Guatemala"
replace ccode= 91 if recipient=="Honduras"
replace ccode= 92 if recipient=="El Salvador"
replace ccode= 93 if recipient=="Nicaragua"
replace ccode= 94 if recipient=="Costa Rica"
replace ccode= 95 if recipient=="Panama"
replace ccode=100 if recipient=="Colombia"
replace ccode=101 if recipient=="Venezuela"
replace ccode=101 if recipient=="Venezuela, Rep. Bol."
replace ccode=110 if recipient=="Guyana"
replace ccode=115 if recipient=="Suriname"
replace ccode=130 if recipient=="Ecuador"
replace ccode=135 if recipient=="Peru"
replace ccode=140 if recipient=="Brazil"
replace ccode=145 if recipient=="Bolivia"
replace ccode=150 if recipient=="Paraguay"
replace ccode=155 if recipient=="Chile"
replace ccode=160 if recipient=="Argentina"
replace ccode=165 if recipient=="Uruguay"
replace ccode=200 if recipient=="United Kingdom"
replace ccode=205 if recipient=="Ireland"
replace ccode=210 if recipient=="Netherlands"
replace ccode=211 if recipient=="Belgium"
replace ccode=212 if recipient=="Luxembourg"
replace ccode=220 if recipient=="France"
replace ccode=221 if recipient=="Monaco"
replace ccode=223 if recipient=="Liechtenstein"
replace ccode=225 if recipient=="Switzerland"
replace ccode=230 if recipient=="Spain"
replace ccode=232 if recipient=="Andorra"
replace ccode=235 if recipient=="Portugal"
replace ccode=255 if recipient=="Germany"
replace ccode=260 if recipient=="German Federal Republic"
replace ccode=265 if recipient=="German Democratic Republic"
replace ccode=265 if recipient=="East Germany (GDR)"
replace ccode=290 if recipient=="Poland"
replace ccode=305 if recipient=="Austria"
replace ccode=310 if recipient=="Hungary"
replace ccode=315 if recipient=="Czechoslovakia"
replace ccode=316 if recipient=="Czech Republic"
replace ccode=316 if recipient=="Czechia"
replace ccode=317 if recipient=="Slovakia"
replace ccode=317 if recipient=="Slovak Republic"
replace ccode=325 if recipient=="Italy"
replace ccode=331 if recipient=="San Marino"
replace ccode=338 if recipient=="Malta"
replace ccode=339 if recipient=="Albania"
replace ccode=341 if recipient=="Montenegro"
replace ccode=343 if recipient=="Macedonia"
replace ccode=343 if recipient=="North Macedonia"
replace ccode=344 if recipient=="Croatia"
replace ccode=345 if recipient=="Yugoslavia"
replace ccode=345 if recipient=="Serbia and Montenegro"
replace ccode=345 if recipient=="Serbia"
replace ccode=346 if recipient=="Bosnia and Herzegovina"
replace ccode=346 if recipient=="Bosnia-Herzegovina"
replace ccode=347 if recipient=="Kosovo"
replace ccode=349 if recipient=="Slovenia"
replace ccode=350 if recipient=="Greece"
replace ccode=352 if recipient=="Cyprus"
replace ccode=355 if recipient=="Bulgaria"
replace ccode=359 if recipient=="Moldova"
replace ccode=360 if recipient=="Romania"
replace ccode=365 if recipient=="Russia"
replace ccode=365 if recipient=="Soviet Union"
replace ccode=365 if recipient=="USSR"
replace ccode=366 if recipient=="Estonia"
replace ccode=367 if recipient=="Latvia"
replace ccode=368 if recipient=="Lithuania"
replace ccode=369 if recipient=="Ukraine"
replace ccode=370 if recipient=="Belarus"
replace ccode=371 if recipient=="Armenia"
replace ccode=372 if recipient=="Georgia"
replace ccode=373 if recipient=="Azerbaijan"
replace ccode=375 if recipient=="Finland"
replace ccode=380 if recipient=="Sweden"
replace ccode=385 if recipient=="Norway"
replace ccode=390 if recipient=="Denmark"
replace ccode=390 if recipient=="Denmark"
replace ccode=395 if recipient=="Iceland"
replace ccode=402 if recipient=="Cape Verde"
replace ccode=402 if recipient=="Cabo Verde"
replace ccode=403 if recipient=="Sao Tome and Principe"
replace ccode=404 if recipient=="Guinea-Bissau"
replace ccode=411 if recipient=="Equatorial Guinea"
replace ccode=420 if recipient=="Gambia"
replace ccode=420 if recipient=="Gambia, The"
replace ccode=432 if recipient=="Mali"
replace ccode=433 if recipient=="Senegal"
replace ccode=434 if recipient=="Benin"
replace ccode=435 if recipient=="Mauritania"
replace ccode=436 if recipient=="Niger"
replace ccode=437 if recipient=="Ivory Coast"
replace ccode=437 if recipient=="Côte d'Ivoire"
replace ccode=437 if recipient=="Cote d'Ivoire"
replace ccode=437 if recipient=="Cote d`Ivoire"
replace ccode=438 if recipient=="Guinea"
replace ccode=439 if recipient=="Burkina Faso"
replace ccode=450 if recipient=="Liberia"
replace ccode=451 if recipient=="Sierra Leone"
replace ccode=452 if recipient=="Ghana"
replace ccode=461 if recipient=="Togo"
replace ccode=471 if recipient=="Cameroon"
replace ccode=475 if recipient=="Nigeria"
replace ccode=481 if recipient=="Gabon"
replace ccode=482 if recipient=="Central African Republic"
replace ccode=482 if recipient=="Central African Rep."
replace ccode=482 if recipient=="Central African Rep"
replace ccode=483 if recipient=="Chad"
replace ccode=484 if recipient=="Congo"
replace ccode=484 if recipient=="Congo, Republic of the"
replace ccode=484 if recipient=="Congo, Republic of"
replace ccode=484 if recipient=="Congo, Rep."
replace ccode=484 if recipient=="Congo, Rep"
replace ccode=484 if recipient=="Congo-Brazzaville"
replace ccode=484 if recipient=="Congo, Brazzaville"
replace ccode=490 if recipient=="Democratic Republic of the Congo"
replace ccode=490 if recipient=="Democratic Republic of Congo"
replace ccode=490 if recipient=="Congo, Democratic Republic of the"
replace ccode=490 if recipient=="Congo, Democratic Republic"
replace ccode=490 if recipient=="Congo, Dem. Rep. of"
replace ccode=490 if recipient=="Congo, Dem. Rep."
replace ccode=490 if recipient=="Congo-Kinshasa"
replace ccode=490 if recipient=="Congo, DR"
replace ccode=490 if recipient=="DR Congo"
replace ccode=490 if recipient=="Zaire"
replace ccode=500 if recipient=="Uganda"
replace ccode=501 if recipient=="Kenya"
replace ccode=510 if recipient=="Tanzania"
replace ccode=511 if recipient=="Zanzibar"
replace ccode=516 if recipient=="Burundi"
replace ccode=517 if recipient=="Rwanda"
replace ccode=520 if recipient=="Somalia"
replace ccode=522 if recipient=="Djibouti"
replace ccode=530 if recipient=="Ethiopia"
replace ccode=531 if recipient=="Eritrea"
replace ccode=540 if recipient=="Angola"
replace ccode=541 if recipient=="Mozambique"
replace ccode=551 if recipient=="Zambia"
replace ccode=552 if recipient=="Zimbabwe"
replace ccode=553 if recipient=="Malawi"
replace ccode=560 if recipient=="South Africa"
replace ccode=565 if recipient=="Namibia"
replace ccode=570 if recipient=="Lesotho"
replace ccode=571 if recipient=="Botswana"
replace ccode=572 if recipient=="Swaziland"
replace ccode=572 if recipient=="eSwatini"
replace ccode=580 if recipient=="Madagascar"
replace ccode=581 if recipient=="Comoros"
replace ccode=590 if recipient=="Mauritius"
replace ccode=591 if recipient=="Seychelles"
replace ccode=600 if recipient=="Morocco"
replace ccode=615 if recipient=="Algeria"
replace ccode=616 if recipient=="Tunisia"
replace ccode=620 if recipient=="Libya"
replace ccode=625 if recipient=="Sudan"
replace ccode=626 if recipient=="South Sudan"
replace ccode=630 if recipient=="Iran"
replace ccode=630 if recipient=="Iran, Islamic Republic"
replace ccode=630 if recipient=="Iran, Ismalic Rep."
replace ccode=630 if recipient=="Iran, Ismalic Rep"
replace ccode=640 if recipient=="Turkey"
replace ccode=640 if recipient=="Turkiye"
replace ccode=645 if recipient=="Iraq"
replace ccode=651 if recipient=="Egypt"
replace ccode=651 if recipient=="Egypt, Arab Republic"
replace ccode=651 if recipient=="Egypt, Arab Rep."
replace ccode=652 if recipient=="Syria"
replace ccode=652 if recipient=="Syrian Arab Republic"
replace ccode=660 if recipient=="Lebanon"
replace ccode=663 if recipient=="Jordan"
replace ccode=666 if recipient=="Israel"
replace ccode=670 if recipient=="Saudi Arabia"
replace ccode=678 if recipient=="Yemen Arab Republic"
replace ccode=678 if recipient=="Yemen Arab Republic (North Yemen)"
replace ccode=678 if recipient=="North Yemen"
replace ccode=679 if recipient=="Yemen"
replace ccode=679 if recipient=="Yemen, Rep."
replace ccode=679 if recipient=="Yemen, Republic of"
replace ccode=680 if recipient=="Yemen People's Republic"
replace ccode=680 if recipient=="Yemen PDR"
replace ccode=680 if recipient=="South Yemen"
replace ccode=690 if recipient=="Kuwait"
replace ccode=692 if recipient=="Bahrain"
replace ccode=694 if recipient=="Qatar"
replace ccode=696 if recipient=="United Arab Emirates"
replace ccode=696 if recipient=="UAE"
replace ccode=698 if recipient=="Oman"
replace ccode=700 if recipient=="Afghanistan"
replace ccode=701 if recipient=="Turkmenistan"
replace ccode=702 if recipient=="Tajikistan"
replace ccode=703 if recipient=="Kyrgyzstan"
replace ccode=703 if recipient=="Kyrgyz Republic"
replace ccode=704 if recipient=="Uzbekistan"
replace ccode=705 if recipient=="Kazakhstan"
replace ccode=710 if recipient=="China"
replace ccode=710 if recipient=="China, People's Republic"
replace ccode=710 if recipient=="China, People's Rep."
replace ccode=710 if recipient=="China, People's Rep"
replace ccode=710 if recipient=="China, PRC"
replace ccode=710 if recipient=="China,P.R.: Mainland"
replace ccode=712 if recipient=="Mongolia"
replace ccode=713 if recipient=="Taiwan"
replace ccode=713 if recipient=="Taiwan, China"
replace ccode=730 if recipient=="Korea"
replace ccode=731 if recipient=="North Korea"
replace ccode=731 if recipient=="Korea, Democratic Republic"
replace ccode=731 if recipient=="Democratic People's Republic of Korea"
replace ccode=731 if recipient=="Korea, Dem. Rep."
replace ccode=732 if recipient=="South Korea"
replace ccode=732 if recipient=="Korea"
replace ccode=732 if recipient=="Korea, Republic of"
replace ccode=732 if recipient=="Republic of Korea"
replace ccode=732 if recipient=="Korea, Rep."
replace ccode=740 if recipient=="Japan"
replace ccode=750 if recipient=="India"
replace ccode=760 if recipient=="Bhutan"
replace ccode=770 if recipient=="Pakistan"
replace ccode=771 if recipient=="Bangladesh"
replace ccode=775 if recipient=="Myanmar"
replace ccode=780 if recipient=="Sri Lanka"
replace ccode=781 if recipient=="Maldives"
replace ccode=790 if recipient=="Nepal"
replace ccode=800 if recipient=="Thailand"
replace ccode=811 if recipient=="Cambodia"
replace ccode=812 if recipient=="Laos"
replace ccode=812 if recipient=="Lao People's Dem.Rep"
replace ccode=816 if recipient=="Vietnam"
replace ccode=816 if recipient=="Viet Nam"
replace ccode=816 if recipient=="Viet Minh (France)*"
replace ccode=816 if recipient=="Democratic Republic of Vietnam"
replace ccode=817 if recipient=="Republic of Vietnam"
replace ccode=817 if recipient=="Vietnam, Republic of"
replace ccode=817 if recipient=="Viet Cong (South Vietnam)*"
replace ccode=817 if recipient=="South Vietnam"
replace ccode=820 if recipient=="Malaysia"
replace ccode=830 if recipient=="Singapore"
replace ccode=835 if recipient=="Brunei"
replace ccode=840 if recipient=="Philippines"
replace ccode=850 if recipient=="Indonesia"
replace ccode=860 if recipient=="East Timor"
replace ccode=860 if recipient=="Timor-Leste"
replace ccode=900 if recipient=="Australia"
replace ccode=910 if recipient=="Papua New Guinea"
replace ccode=920 if recipient=="New Zealand"
replace ccode=935 if recipient=="Vanuatu"
replace ccode=940 if recipient=="Solomon Islands"
replace ccode=946 if recipient=="Kiribati"
replace ccode=947 if recipient=="Tuvalu"
replace ccode=950 if recipient=="Fiji"
replace ccode=955 if recipient=="Tonga"
replace ccode=970 if recipient=="Nauru"
replace ccode=983 if recipient=="Marshall Islands"
replace ccode=986 if recipient=="Palau"
replace ccode=987 if recipient=="Federated States of Micronesia"
replace ccode=987 if recipient=="Micronesia"
replace ccode=987 if recipient=="Micronesia, Fed. Sts."
replace ccode=990 if recipient=="Samoa"
